# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-tblib
_pkgname=tblib
pkgver=1.5.0
pkgrel=1
pkgdesc='Traceback serialization library.'
url='https://pypi.org/project/tblib/#files'
arch=('any')
license=('BSD')
depends=('python2' 'python2-six')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('8a302fc6ec682b8958da2811806592130b014dd25de2f30ed17ac6a056995727635e17e772e1b08933f2dfc40d7bfba1364971746e3072b6b818074750c8e37e')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

